function enterValues()
{
    var strTarget='&target=1';
    if($F('chkTarget')=='on')
        strTarget='&target=1';        
    else
        strTarget='&target=0';
        
    var data='title='+$F('txtTitle')+'&url='+$F('txtURL')+'&description='+$F('txtDescription')+strTarget;
    
    var callbackURL='../handlers/callback.ashx?status=link';
    
    if($F('txtBookmarks_Id')=='')
    {
        callbackURL=callbackURL+'&mode=insert';
        var myAjax=new Ajax.Request(
            callbackURL,
            {method: 'post', parameters: data, onComplete: valuesEntered}
        );
    }
    else
    {
        callbackURL=callbackURL+'&mode=update';
        data=data+'&bookmarks_Id='+$F('txtBookmarks_Id');
        var myAjax=new Ajax.Request(
            callbackURL,
            {method: 'post', parameters: data, onComplete: valuesEntered}
        );
    }
}

function valuesEntered(originalRequest) {
    $('loadermsg').innerHTML=originalRequest.responseText;
    Form.reset($('frmLinks'));
}